<%--
    Created on : 2019
    Author     : 黄忠
--%>

<%@page import="loginRegister.LoginBean"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>子窗口左边部分</title>
        <link rel="stylesheet" href="../CSS/infor.css">
    </head>
    <body style="background-color: #1fc9a3;">
    <%
        String userName=request.getParameter("userName");
        String name=null;
        String level=null;
    %>
    <%
        LoginBean login=(LoginBean)session.getAttribute("login");
        if(login==null){
            response.sendRedirect("http://localhost:8080/login.jsp");
        }else{
            name = login.getName();
            level = login.getLevel();
        }
    %>
    <table style="text-align: center;width: 100%;" align="left">
        <tr>
            <th>欢迎，<%=name%>登录系统</th>
        </tr>
        <tr>
            <td class="clickDown"><a class="clickDown" href="../lookMessage/topMessage.jsp" target="middle">个人信息管理</a></td>
        </tr>
        <tr>
            <td><a href="../friendManager/topFriend.jsp" target="middle">通讯录管理</a></td>
        </tr>
        <tr>
            <td><a href="../dateManager/topDate.jsp" target="middle">日程安排管理</a></td>
        </tr>
            <% if(!level.equals("员工")){ %>
        <tr>
            <td><a href="../staffManager/topStaff.jsp" target="middle">员工信息管理</a></td>
        </tr>
            <% } %>
    </table>
    </body>
</html>
<script src="../JS/clickDown.js"></script>
<script>
    window.onload=function () {
        window.open("../lookMessage/topMessage.jsp","middle");
    }
</script>
